package com.aaa.controller;


import com.aaa.entity.ContractExpire;
import com.aaa.entity.Result;
import com.aaa.service.IContractExpireService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author auto
 * @since 2021-01-29
 */
@RestController
@RequestMapping("/expireRent")
public class ContractExpireRentController {

    @Autowired
    IContractExpireService service;

    /**
     *  租入合同到期 查询所有
     * @return
     */

    @RequestMapping("/listAll")
    public Result listAllExpireRent(){

        return service.listAllExpireRent();
    }

}

